def max_gongyue(a, b):
    while b > 0:
        rem = a % b
        if rem == 0:
            return b
        else:
            a = b
            b = rem


def min_gongbei(a, b):
    return a * b / max_gongyue(a, b)


if __name__ == "__main__":
    myin = input().split()
    a = int(myin[0])
    b = int(myin[1])
    if a < b:
        c = a
        a = b
        b = c
    print(min_gongbei(a, b))








